---
icon: RSSIcon
---

import { ExampleCode } from 'components/example-code'

# Generate RSS feed

The following code snippet demonstrates how to create `/rss.xml` route.

<ExampleCode
  example="blog"
  filePath="app/rss.xml/route.js"
  metadata="/getPosts/"
/>
